package org.xmatch.agenda.presentation;

import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Name;
import org.xmatch.agenda.business.DoctorBO;
import org.xmatch.agenda.entity.Doctor;
import org.xmatch.framework.presentation.GenericEntityAction;

@Name("doctorAction")
public class DoctorAction extends GenericEntityAction<Doctor>{


	private static final long serialVersionUID = -4324615075061092295L;
	
	@In(value = "doctorBO", create = true)
	public void setBusinessService(DoctorBO bo) {
		this.businessService = bo;
	}

	public void setDoctor(Doctor doctor) {
		setInstance(doctor);
	}

	public Doctor getDoctor() {
		return getInstance();
	}
}
